<?php
$sample_code='P21111';
$salt='test';
$filename = str_replace('/', 'A', $sample_code . '_' . crypt($sample_code, $salt));
$filename = str_replace('.', 'B', $filename) . '.pdf';//用户名
var_dump($filename);
die();